package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.Picture;
import com.ruoyi.system.mapper.PictureMapper;
import com.ruoyi.system.service.PictureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PictureServiceImpl extends ServiceImpl<PictureMapper, Picture> implements PictureService {
    @Autowired
    private PictureMapper pictureMapper;

    @Override
    public List<Picture> getAll(Integer pictureId, Integer productId) {
        List<Picture> all = pictureMapper.getAll(pictureId, productId);
        return all;
    }
}
